package com.oracle.service.imple;

import com.oracle.dao.RoleMapper;
import com.oracle.pojo.Role;
import com.oracle.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper role;

    @Override
    public List<Role> findRolesByUserID(Integer id) {
        return role.findRolesByUserID(id);
    }

    @Override
    public List<Role> findAll() {
        return role.findAll();
    }
}
